package com.baizhi.cmfzmanager.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("cmfz_album")
public class Album {
    @TableId("album_id")
    @JSONField(name="id")
    private Long albumId;
    @TableField("album_name")
    @JSONField(name="name")
    private String albumName;
    @TableField("album_author")
    private String albumAuthor;
    @TableField("album_teller")
    private String albumTeller;
    @TableField("album_Episodes")
    private Integer albumEpisodes=0;
    @TableField("album_date")
    private Date albumDate=new Date();
    @TableField("album_content")
    private String albumContent;
    @TableField("album_image")
    private String albumImage="1.jpg";
    @TableField("album_star")
    private Integer albumStar;
    @TableField(exist = false)
    private List<Audio> children;

}
